package com.mskj.zxmy.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.mskj.zxmy.entity.XssalesDispatchDetails;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class CKDanSaveDTO {

    @JsonIgnore
    @Schema(description = "主键ID")
    private int id;

    @Schema(description = "流水号、出库单单号")
    private String cashiersNumber;

    @Schema(description = "出库类型")
    private String poolType;

    @Schema(description = "出库日期")
    private LocalDate collectionDate;
    @Schema(description = "操作人")
    private String operator;

    @JsonIgnore
    @Schema(description = "图片（字段类型为图片，这里用 String 存路径等信息，实际可根据需求调整）")
    private String f60;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "审批状态")
    private String approvalStatus;

    @Schema(description = "关联发货单")
    private String associatedConsignmentOrder;

    @Schema(description = "出库数量=出库明细子表出库数量相加")
    private int totalNumber;

    @Schema(description = "送货地址")
    private String address;

    @Schema(description = "子表关联id")
    private List<Integer> showMeTheDetailss;
    @Schema(description = "出库明细（子表）")
    private List<CKDanDetailSaveDTO> showMeTheDetails;


}
